package com.axend.lib_room.entity

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize

/**
 * @author axend
 * @date 2020/7/30
 * @desc
 */
@Parcelize
@Entity(tableName = "test_data")
data class TestDataEntity(
    @PrimaryKey(autoGenerate = true)
    var id: Int,
    var name: String,
    var age: Int,
) : Parcelable {
    constructor():this(0,"",0)
    constructor(name: String, age: Int) : this() {
        this.name = name
        this.age = age
    }

}